package user

import (
	"gitee.com/xiaoyutab/xgotool/xgodb"
	"gitee.com/xiaoyutab/xgotool/xstring"
)

// 生成随机串
func GetRand() string {
	if len(xgodb.GetString("USER_RAND_PASS")) > 12 {
		return xgodb.GetString("USER_RAND_PASS")[:12] + "." + xstring.Random(12)
	}
	return xgodb.GetString("USER_RAND_PASS") + "." + xstring.Random(12)
}
